package com.docker.fy.controller;

import com.docker.common.annotation.Anonymous;
import com.docker.common.core.domain.AjaxResult;
import com.docker.fy.service.ShoppingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author 23118
 * @version 1.0
 * @description: TODO
 * @date 2025/4/15 8:38
 */
@RestController
@RequestMapping("/shopping/shopping")
public class ShoppingController {

    @Autowired
    private ShoppingService shoppingService;

    @Anonymous
    @RequestMapping("/savePrescription")
    public AjaxResult savePrescription(@RequestBody Map map) {
//        System.out.println(map);
        AjaxResult ajaxResult = shoppingService.savePrescription(map);
        return ajaxResult;
    }
}
